public class P {

	public static void main(String[] args) {
		System.out.println("dd");
		System.out.println("ddd");

		char aChar = 225;
		long aLong = 2L;
		int aInt = 8;
		short aShort = 12;
		float aFloat = 0.2f;
		double aDouble = 0.3;
		byte aByte = 127;

		Byte b = null; // b.byteValue();
		Short s; // s.shortValue();
		Integer i; // i.intValue();
		Long l;
		Character c;// c.charValue();

		aShort = aByte;
		aInt = aShort;
		aLong = aInt;

		aByte = (byte) aShort;

		aFloat = aInt;
		aInt = (int) aFloat;

		// String str = "12.0l";
		// for (int j = 0; j < str.length(); j++) {
		// System.out.println(str.charAt(j));
		//			
		// }

		int iiiiii = 555666777;
		for (int j = 0; j < String.valueOf(iiiiii).length(); j++) {
			char cr = defineDigit(iiiiii, j);
			int e = Integer.valueOf(String.valueOf(cr)).intValue();

			System.out.println(e);

		}

	}

	public static char defineDigit(int chislo, int num) {

		String chisloAsString = String.valueOf(chislo);
		return chisloAsString.charAt(num);
	}

}
